from odoo import api, models, fields

class nbd_ir_attachment(models.model):
    _inherit = ["ir.attachment"]
    
    # # 添加反向关联字段
    # nbd_filemanager_id = fields.Many2one(
    #     comodel_name='nbd.filemanager',  # 关联的模型名称
    #     string='NBD Record',  # 字段显示名称
    #     ondelete='set null'  # 当关联的记录被删除时，设置为NULL
    # )